package com.ihr360.payroll.config;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ihr360.commons.model.type.FieldSource;
import com.ihr360.payroll.config.system.SystemSalaryFieldEntity;

@JsonInclude(JsonInclude.Include.NON_NULL)
public class SalaryFieldEntity extends AbstractSalaryFieldEntity {
    /** 代码
     * 对于从系统中选择的字段代码应该和meta中的code相同，如果是用户自己添加的，会自动生成
     */
    private String code;

    /** 薪酬字段元信息 */
    protected SystemSalaryFieldEntity meta;

    /** 字段取值方式 */
    protected FieldSource source;

    /** 字段值限制 */
    protected SalaryFieldValueEntity valueMeta;

    protected boolean placeholder;

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public SystemSalaryFieldEntity getMeta() {
        return meta;
    }

    public void setMeta(SystemSalaryFieldEntity meta) {
        this.meta = meta;
    }

    public FieldSource getSource() {
        return source;
    }

    public void setSource(FieldSource source) {
        this.source = source;
    }

    public SalaryFieldValueEntity getValueMeta() {
        return valueMeta;
    }

    public void setValueMeta(SalaryFieldValueEntity valueMeta) {
        this.valueMeta = valueMeta;
    }

    public boolean isPlaceholder() {
        return placeholder;
    }

    public void setPlaceholder(boolean placeholder) {
        this.placeholder = placeholder;
    }
}